import request from "@/utils/request";


/**
 * 查询所有有效的科室信息
 * @returns {*}
 */
export function selectAllRegistered() {
	return request({
		url: '/seeADoctor/Registered/getAllRegisteredItem',
	})
}
// 条件查询待分页
export const listRegisteredItemForPage = (data) =>{
	return request({
		url: '/systemManager/regFee/findRegisteredItemByCond',
		method:"POST",
		data
	})
}


// 添加
export function addRegisteredItem(data) {
	return request({
		url: '/systemManager/regFee/addRegFee',
		method: 'post',
		params: data
	})
}

// 修改
export function updateRegisteredItem(data) {
	return request({
		url: '/systemManager/regFee/updateRegFee',
		method: 'post',
		data
	})
}

// 查询一个
export function getRegisteredItemById(id) {
	return request({
		url: `/systemManager/regFee/getRegisteredItemByRegisteredItemId/${id}`,
		method: 'post'
	})
}

// 删除
export function deleteRegisteredItemByIds(ids) {
	return request({
		url: `/systemManager/regFee/deleteRegFeeByIds/${ids}`,
		method: 'delete'
	})
}

